package com.lzc.springcloud.authserver.infrastructure.persistence;

import com.lzc.springcloud.authserver.domain.identity.SysUserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SysUserRepository extends JpaRepository<SysUserEntity, Long> {

    SysUserEntity findByUsername(@Param("username") String username);
}
